/*
 * Copyright (c) United Binary LLC.  All rights reserved.
 * 
 * This code is licensed under the MIT License
 * 
 * SEE: http://harnessit.codeplex.com/license
 * 
 */
using System;
using System.Diagnostics;
using Microsoft.Win32;

namespace UnitedBinary.HarnessIt
{
	/// <summary>
	/// Summary description for PersistentValues.
	/// </summary>
	internal class PersistentValues
	{
		private string mainKey = @"Software\United Binary\HarnessIt";
		private string keyNameInstallDir = "InstallDir";

		internal PersistentValues()
		{
		}

		internal string InstallDirectory
		{
			get
			{
				string dir = "";

				RegistryKey key = Registry.LocalMachine.OpenSubKey(mainKey);
				dir = (string)key.GetValue(keyNameInstallDir);

				return dir;
			}
		}
	}
}
